package com.ddwl.common.exception;

/**
 * 类SqlDataException.java的实现描述：TODO
 *
 * @author zach
 * @Date :2020-10-29 13:04.
 */
public class SqlDataException extends RuntimeException{
    private static final long serialVersionUID = -5701182284190108797L;

    private int code =500;

    public void setCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public SqlDataException() {
    }

    /**
     * @param message 原异常信息
     */
    public SqlDataException(String message) {
        super(message);
    }


    public SqlDataException( int code,String message) {
        super(message);
        this.code = code;
    }
}

